import { createBrowserRouter,Navigate } from "react-router-dom";
import Jj from "../com/JJ";
import Jzw from "../com/Jzw";
import Login from "../com/Login";
import Login2 from "../com/Login2";
import Cart from "../com/cart";
import Si from "../com/Si";
import Shou from "../com/Shou";
import San from "../com/San";
import App from "../com/App";
import Suo from "../com/Suo";
import Car from "../com/car"
// =======
import Sj from '../com/sj'

// >>>>>>> 15e0d98b0f3f59a85b00798af91c321b8bea9987
const router = createBrowserRouter([
    {
        path:'/jj',
        element:<Jj></Jj>
    },
    {
      path:'/Login',
      element:<Login></Login>
    },
    {
      path:'/Login2',
      element:<Login2></Login2>
    },
    {
      path:'/cart',
      element:<Cart></Cart>
    },
    {

      path:'/',
      element:<Navigate to='/Login'></Navigate>
    },
    {
      path: "/app", element: <App></App>
      , children: [
          { path: 'jzw', element: <Jzw></Jzw>},
          { path: 'suo', element: <Suo></Suo> },
          { path: 'san', element: <San></San> },
          { path: 'si', element: <Si></Si>,
            children:[
              { path: 'car', element: <Car></Car>}
            ]
          },
          { path: 'shou', element: <Shou></Shou> }
      ]
  },
// =======
    {
      path:'/sj',
      element:<Sj></Sj>
    }
// >>>>>>> 15e0d98b0f3f59a85b00798af91c321b8bea9987
])
export default router
